/* stylelint-disable no-descending-specificity */
/* stylelint-disable selector-class-pattern */
@include b(bi-report-grid) {
    .el-table {
        .el-table__header {
            .el-table__cell {
                font-style: var(--ibiz-control-grid-header-font-style);
                text-align: var(--ibiz-control-grid-header-align);
            }

        }

        .ibiz-grid-field-column__text {
            overflow: visible;
            font-size: var(--ibiz-control-grid-content-font-size);
            font-style: var(--ibiz-control-grid-content-font-style);
            font-weight: var(--ibiz-control-grid-content-font-weight);
            color: var(--ibiz-control-grid-content-text-color);
        }

        .ibiz-grid-field-column__script {
            line-height: 23px;
        }

    
    }

    // 只读、边框样式
    .el-table {
        --el-table-border-color: var(--ibiz-color-border);
        --ibiz-control-grid-row-hover-color: transparent;
        --el-table-current-row-bg-color: transparent;
        --ibiz-control-grid-row-bg-color-2: var(--ibiz-control-grid-row-bg-color);

        tr td {
            pointer-events: none;
        }

        .el-table__header-wrapper {
            .el-table__header thead>tr th:nth-child(1){
              padding-left: 0;
            }
        }
      
        // 表格body样式
        .el-table__body-wrapper {
            .el-table__body tbody>tr td:nth-child(1){
                padding-left: 0;
            }
        }
    }

    .el-table--border {
        .el-table__cell {
          border-right: var(--el-table-border);
        }
    }

    // 去除底部border
  .el-table td.el-table__cell,
  .el-table th.el-table__cell.is-leaf {
    border-bottom: var(--el-table-border);
  }

    &.el-table--scroll-header {
        .el-table__inner-wrapper {
            overflow: auto;
        }

        .el-table__header-wrapper {
            position: sticky;
            top: 0;
        }

        .el-table__body-wrapper {
            flex: none;
            height: auto;
        }

        .el-scrollbar__bar {
            display: none;
        }
    }

    &.el-table--top-agg {
        .el-table__header-wrapper {
            order: 0;
        }
        
        .el-table__footer-wrapper {
            order: 1;

            .el-table__footer {
                height: var(--ibiz-control-grid-content-row-height);
            }
        }

        .el-table__body-wrapper {
            order: 2;
        }
    }

    // 允许反查样式
    &.el-table--is-drill {
        tr td {
            pointer-events: none;
        }

        .enable-pointer {
            pointer-events: unset;
        }
    }
}